import React from 'react'
import PubSub from 'pubsub-js'
export default function SonSub() {
    
  return (
    <div>
      <h3>SonSub</h3>
      <button onClick={()=>{
        PubSub.publish('法外李四', '哈哈哈，我李四来陪法外狂徒张三了')
        }}>发布法外李四消息</button>
    </div>
  )
}
